﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.CodeAnalysis;


namespace Admin.NET.Application.Entity;

/// <summary>
/// 交通岗实体类
/// </summary>
[SugarTable("base_traffic", "交通岗实体类")]
public class TrafficEntity : EntityBase
{
    /// <summary>
    /// 标题。
    /// </summary>
    [SugarColumn(ColumnDescription = "标题", Length = 100, IsNullable = true)]
    public string Title { get; set; }

    /// <summary>
    /// 客户端IP
    /// </summary> 
    [SugarColumn(ColumnDescription = "客户端IP", Length = 32, IsNullable = true)]
    public string ClientIp { get; set; }
    /// <summary>
    /// 查岗时间。
    /// </summary>
    [SugarColumn(ColumnDescription = "查岗时间", IsNullable = true)]
    public DateTime WorkDate { get; set; }

    /// <summary>
    /// 图片地址列表（逗号分隔的URL字符串）。
    /// </summary>
    [SugarColumn(ColumnDescription = "图片地址列表", Length = 2000, IsNullable = true)]
    public string ImageUrls { get; set; }

    /// <summary>
    /// 标签。
    /// </summary>
    [SugarColumn(ColumnDescription = "标签", Length = 100, IsNullable = true)]
    public string TagsJson { get; set; }

    /// <summary>
    /// 详细地址。
    /// </summary>
    [SugarColumn(ColumnDescription = "详细地址", Length = 200, IsNullable = true)]
    public string Address { get; set; }

    /// <summary>
    /// 坐标位置。
    /// </summary>
    [SugarColumn(ColumnDescription = "坐标位置", Length = 50, IsNullable = true)]
    public string Position { get; set; }
    /// <summary>
    /// 描述信息。
    /// </summary>
    [SugarColumn(ColumnDescription = "描述", Length = 500, IsNullable = true)]
    public string Description { get; set; }

    /// <summary>
    /// 状态，100 进行中 200 已结束
    /// </summary> 
    [SugarColumn(ColumnDescription = "状态", IsNullable = true)]
    public int? Status { get; set; } 
    /// <summary>
    /// 点赞数量
    /// </summary> 
    [SugarColumn(ColumnDescription = "点赞数量",  IsNullable = true)]
    public int? LikeCount { get; set; }
    /// <summary>
    /// 反对数量
    /// </summary>
    [SugarColumn(ColumnDescription = "反对数量",   IsNullable = true)]
    public int? VetoCount { get; set; }

    /// <summary>
    /// 浏览量
    /// </summary>
    [SugarColumn(ColumnDescription = "浏览量", IsNullable = true)]
    public int? ViewCount { get; set; }
}
